<?php
require_once( "pb_proto_common.php" );
class ErrorType extends PBEnum
{
  const SUCCESS  = 0;
  const FAIL  = 1;
  const FAIL_SYS  = 2;
  const FAIL_NETWORK  = 3;
  const FAIL_AUTH  = 4;
  const CHANNEL_SYS_FAIL  = 5;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			0 => "SUCCESS",
			1 => "FAIL",
			2 => "FAIL_SYS",
			3 => "FAIL_NETWORK",
			4 => "FAIL_AUTH",
			5 => "CHANNEL_SYS_FAIL");
   }
}
class SocialShare_ActionType extends PBEnum
{
  const GET_GROUP  = 1;
  const SHARE  = 2;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "GET_GROUP",
			2 => "SHARE");
   }
}
class SocialShare extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["SocialShare"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["SocialShare"]["5"] = "uuid";
    self::$fields["SocialShare"]["1"] = "SocialChannelType";
    $this->values["1"] = "";
    self::$fieldNames["SocialShare"]["1"] = "channel_type";
    self::$fields["SocialShare"]["4"] = "PBBytes";
    $this->values["4"] = "";
    self::$fieldNames["SocialShare"]["4"] = "channel_share_info";
    self::$fields["SocialShare"]["2"] = "SocialShare_ActionType";
    $this->values["2"] = "";
    self::$fieldNames["SocialShare"]["2"] = "type";
  }
  function uuid()
  {
    return $this->_get_value("5");
  }
  function set_uuid($value)
  {
    return $this->_set_value("5", $value);
  }
  function channel_type()
  {
    return $this->_get_value("1");
  }
  function set_channel_type($value)
  {
    return $this->_set_value("1", $value);
  }
  function channel_type_string()
  {
    return $this->values["1"]->get_description();
  }
  function channel_share_info()
  {
    return $this->_get_value("4");
  }
  function set_channel_share_info($value)
  {
    return $this->_set_value("4", $value);
  }
  function type()
  {
    return $this->_get_value("2");
  }
  function set_type($value)
  {
    return $this->_set_value("2", $value);
  }
  function type_string()
  {
    return $this->values["2"]->get_description();
  }
}
class GetGroupRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["GetGroupRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["GetGroupRequest"]["1"] = "fb_id";
  }
  function fb_id()
  {
    return $this->_get_value("1");
  }
  function set_fb_id($value)
  {
    return $this->_set_value("1", $value);
  }
}
class GetGroupReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["GetGroupReply"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["GetGroupReply"]["1"] = "error_msg";
    self::$fields["GetGroupReply"]["2"] = "ErrorType";
    $this->values["2"] = "";
    self::$fieldNames["GetGroupReply"]["2"] = "error_no";
    self::$fields["GetGroupReply"]["3"] = "Group";
    $this->values["3"] = array();
    self::$fieldNames["GetGroupReply"]["3"] = "gr";
  }
  function error_msg()
  {
    return $this->_get_value("1");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("1", $value);
  }
  function error_no()
  {
    return $this->_get_value("2");
  }
  function set_error_no($value)
  {
    return $this->_set_value("2", $value);
  }
  function error_no_string()
  {
    return $this->values["2"]->get_description();
  }
  function gr($offset)
  {
    return $this->_get_arr_value("3", $offset);
  }
  function add_gr()
  {
    return $this->_add_arr_value("3");
  }
  function set_gr($index, $value)
  {
    $this->_set_arr_value("3", $index, $value);
  }
  function set_all_grs($values)
  {
    return $this->_set_arr_values("3", $values);
  }
  function remove_last_gr()
  {
    $this->_remove_last_arr_value("3");
  }
  function grs_size()
  {
    return $this->_get_arr_size("3");
  }
  function get_grs()
  {
    return $this->_get_value("3");
  }
}
class FacebookShareRequest_ShareType extends PBEnum
{
  const SHARE  = 1;
  const POST  = 2;
  const OPEN_GRAPH  = 3;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "SHARE",
			2 => "POST",
			3 => "OPEN_GRAPH");
   }
}
class FacebookShareRequest_AddressType extends PBEnum
{
  const GROUP  = 1;
  const PAGE  = 2;

  public function __construct($reader=null)
  {
   	parent::__construct($reader);
 	$this->names = array(
			1 => "GROUP",
			2 => "PAGE");
   }
}
class FacebookShareRequest extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["FacebookShareRequest"]["2"] = "FacebookShareRequest_ShareType";
    $this->values["2"] = "";
    self::$fieldNames["FacebookShareRequest"]["2"] = "share_type";
    self::$fields["FacebookShareRequest"]["11"] = "FacebookShareRequest_AddressType";
    $this->values["11"] = array();
    self::$fieldNames["FacebookShareRequest"]["11"] = "address_type";
    self::$fields["FacebookShareRequest"]["4"] = "ItemType";
    $this->values["4"] = "";
    self::$fieldNames["FacebookShareRequest"]["4"] = "item_type";
    self::$fields["FacebookShareRequest"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["FacebookShareRequest"]["1"] = "thumb_picture_uri";
    self::$fields["FacebookShareRequest"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["FacebookShareRequest"]["3"] = "content_uri";
    self::$fields["FacebookShareRequest"]["8"] = "PBString";
    $this->values["8"] = "";
    self::$fieldNames["FacebookShareRequest"]["8"] = "photo_uri";
    self::$fields["FacebookShareRequest"]["5"] = "PBString";
    $this->values["5"] = "";
    self::$fieldNames["FacebookShareRequest"]["5"] = "description";
    self::$fields["FacebookShareRequest"]["6"] = "PBString";
    $this->values["6"] = "";
    self::$fieldNames["FacebookShareRequest"]["6"] = "title";
    self::$fields["FacebookShareRequest"]["7"] = "PBString";
    $this->values["7"] = "";
    self::$fieldNames["FacebookShareRequest"]["7"] = "message2share";
    self::$fields["FacebookShareRequest"]["9"] = "OpenGraphShareAction";
    $this->values["9"] = "";
    self::$fieldNames["FacebookShareRequest"]["9"] = "open_graph_type";
    self::$fields["FacebookShareRequest"]["10"] = "PBString";
    $this->values["10"] = "";
    self::$fieldNames["FacebookShareRequest"]["10"] = "facebook_id";
    self::$fields["FacebookShareRequest"]["12"] = "Group";
    $this->values["12"] = array();
    self::$fieldNames["FacebookShareRequest"]["12"] = "gr";
  }
  function share_type()
  {
    return $this->_get_value("2");
  }
  function set_share_type($value)
  {
    return $this->_set_value("2", $value);
  }
  function share_type_string()
  {
    return $this->values["2"]->get_description();
  }
  function address_type($offset)
  {
    $v = $this->_get_arr_value("11", $offset);
    return $v->get_value();
  }
  function append_address_type($value)
  {
    $v = $this->_add_arr_value("11");
    $v->set_value($value);
  }
  function set_address_type($index, $value)
  {
    $v = new self::$fields["FacebookShareRequest"]["11"]();
    $v->set_value($value);
    $this->_set_arr_value("11", $index, $v);
  }
  function remove_last_address_type()
  {
    $this->_remove_last_arr_value("11");
  }
  function address_types_size()
  {
    return $this->_get_arr_size("11");
  }
  function get_address_types()
  {
    return $this->_get_value("11");
  }
  function item_type()
  {
    return $this->_get_value("4");
  }
  function set_item_type($value)
  {
    return $this->_set_value("4", $value);
  }
  function item_type_string()
  {
    return $this->values["4"]->get_description();
  }
  function thumb_picture_uri()
  {
    return $this->_get_value("1");
  }
  function set_thumb_picture_uri($value)
  {
    return $this->_set_value("1", $value);
  }
  function content_uri()
  {
    return $this->_get_value("3");
  }
  function set_content_uri($value)
  {
    return $this->_set_value("3", $value);
  }
  function photo_uri()
  {
    return $this->_get_value("8");
  }
  function set_photo_uri($value)
  {
    return $this->_set_value("8", $value);
  }
  function description()
  {
    return $this->_get_value("5");
  }
  function set_description($value)
  {
    return $this->_set_value("5", $value);
  }
  function title()
  {
    return $this->_get_value("6");
  }
  function set_title($value)
  {
    return $this->_set_value("6", $value);
  }
  function message2share()
  {
    return $this->_get_value("7");
  }
  function set_message2share($value)
  {
    return $this->_set_value("7", $value);
  }
  function open_graph_type()
  {
    return $this->_get_value("9");
  }
  function set_open_graph_type($value)
  {
    return $this->_set_value("9", $value);
  }
  function open_graph_type_string()
  {
    return $this->values["9"]->get_description();
  }
  function facebook_id()
  {
    return $this->_get_value("10");
  }
  function set_facebook_id($value)
  {
    return $this->_set_value("10", $value);
  }
  function gr($offset)
  {
    return $this->_get_arr_value("12", $offset);
  }
  function add_gr()
  {
    return $this->_add_arr_value("12");
  }
  function set_gr($index, $value)
  {
    $this->_set_arr_value("12", $index, $value);
  }
  function set_all_grs($values)
  {
    return $this->_set_arr_values("12", $values);
  }
  function remove_last_gr()
  {
    $this->_remove_last_arr_value("12");
  }
  function grs_size()
  {
    return $this->_get_arr_size("12");
  }
  function get_grs()
  {
    return $this->_get_value("12");
  }
}
class FacebookShareReply extends PBMessage
{
  var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
  public function __construct($reader=null)
  {
    parent::__construct($reader);
    self::$fields["FacebookShareReply"]["2"] = "ErrorType";
    $this->values["2"] = "";
    self::$fieldNames["FacebookShareReply"]["2"] = "error_no";
    self::$fields["FacebookShareReply"]["3"] = "PBString";
    $this->values["3"] = "";
    self::$fieldNames["FacebookShareReply"]["3"] = "error_msg";
    self::$fields["FacebookShareReply"]["1"] = "PBString";
    $this->values["1"] = "";
    self::$fieldNames["FacebookShareReply"]["1"] = "facebook_post_id";
  }
  function error_no()
  {
    return $this->_get_value("2");
  }
  function set_error_no($value)
  {
    return $this->_set_value("2", $value);
  }
  function error_no_string()
  {
    return $this->values["2"]->get_description();
  }
  function error_msg()
  {
    return $this->_get_value("3");
  }
  function set_error_msg($value)
  {
    return $this->_set_value("3", $value);
  }
  function facebook_post_id()
  {
    return $this->_get_value("1");
  }
  function set_facebook_post_id($value)
  {
    return $this->_set_value("1", $value);
  }
}
?>